import 'package:flutter/material.dart';
import 'package:Lter/model/lter.dart';

class LterClientCard extends StatelessWidget {
  LterClientCard({Key key, this.mLterClientInfo}) : super(key: key);

  LterClientInfo mLterClientInfo;
  static const optionStyle = TextStyle(
      fontFamily: 'Roboto',
      //letterSpacing: 0.5,
      fontSize: 14.0,
      color: Colors.white);

  @override
  Widget build(BuildContext context) {
    return Container(
        color: Colors.teal,
        child: Column(
          children: <Widget>[
            SizedBox(
              height: 10.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\tLter Client",
                  style: TextStyle(
                      fontWeight: FontWeight.w800,
                      fontFamily: 'Roboto',
                      //letterSpacing: 0.5,
                      fontSize: 18.0,
                      color: Colors.white),
                ),
                Text(""),
              ],
            ),
            Divider(
              height: 10.0,
              indent: 0.0,
              color: Colors.white,
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tAddr",
                  style: optionStyle,
                ),
                Text(
                  mLterClientInfo.Addr + "\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tIP Region",
                  style: optionStyle,
                ),
                Text(
                  mLterClientInfo.IPRegion + "\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tOn Time",
                  style: optionStyle,
                ),
                Text(
                  mLterClientInfo.OnTime + "\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 5.0,
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  "\t\t\t\tPcap Count",
                  style: optionStyle,
                ),
                Text(
                  mLterClientInfo.PcapCount.toString() + "\t\t\t\t",
                  style: optionStyle,
                ),
              ],
            ),
            SizedBox(
              height: 10.0,
            ),
          ],
        ));
  }
}
